package com.mark.web.bill.entity.from;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @Description: 新增加工零件种类
 * @Author: Mark
 * @CreateDate: 2019/2/17 11:03
 * @Version: 2.0
 * @Copyright : 豆浆油条个人非正式工作室
 */
@Data
@ApiModel(value = "种类新增表单")
public class AddGoodsCateFrom {
    /**
     * 父级种类Id
     */
    @Min(value = 0,message = "加工零件的父级id应大于等于0")
    private Integer parentId;

    /**
     * 种类名
     */
    @NotBlank(message = "加工零件种类名称必填")
    private String goodsCategoryName;

    /**
     * 权重
     */
    @Min(value = 0,message = "加工零件的id应大于等于0")
    private Integer priority;

}
